x86/mm: Fix operator associativity bug in mm-locks.h
authorTim Deegan <tim@xen.org>
Thu, 12 Jan 2012 16:39:05 +0000 (16:39 +0000)
committerTim Deegan <tim@xen.org>
Thu, 12 Jan 2012 16:39:05 +0000 (16:39 +0000)
commite4dbfcfe9d63087affb09c41dce0e069dc45d7bc
tree3f517b88a6fa0d6bc9781b34a827d970fe10f6e0
parentd80c4826059a6a59a1eaa268e6ce5125c90c77ea
x86/mm: Fix operator associativity bug in mm-locks.h

In an order-enforcing wrapper for an "external" recursive lock,
we aim to increment/decrement a recurse count and only update the
lock ordering on zero counts.

Unfortunately we incrementing/decrementing the pointer to the
recurse count, rather than the count itself.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mm-locks.h